package daw1.programacion.ud12.observer.ej02;

public class AlumnoIngles implements IAlumno {
	private String name;
	private Profesor teacher;

	public void sayName() {
		System.out.println("Hello, I'm " + name);
	}

	public void sayCasualHello() {
		System.out.println("Hi there, it's " + name);
	}
	public AlumnoIngles(String name, Profesor teacher) {
		this.name = name;
		this.teacher = teacher;
	}

	@Override
	public void nombrate() {
		sayCasualHello();
		
	}
}